package leecode

func reverseListLCR024(head *ListNode) *ListNode {
	dummy := head
	var pre *ListNode
	for dummy != nil {
		next := dummy.Next
		dummy.Next = pre
		pre = dummy
		dummy.Next = next
	}
	return pre
}
